<{if $subcategories}>

<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
  <tr>
  <{foreach from=$subcategories item=cat key=count}>
    <td style="text-align:right:vertical-align:top;">
        <a href="<{$myurl}>/index.php?cid=<{$cat.cid}>">
          <img src="<{$myurl}>/images/folder_o.gif" width="30" height="12" border="0" alt="" />
        </a>
    </td>
    <td style="width:33%; vertical-align:top;padding-top:0;">
      <a href="<{$myurl}>/index.php?cid=<{$cat.cid}>"><span style="font:bold 150%;"><{$cat.title}></span></a>
	  <{if $cat.photo_total_sum && $cat.subcategories}>
	    &nbsp;<{$smarty.const._MD_MINIAMAZON_TOTAL}><{$cat.photo_total_sum}>
	  <{/if}>
	  &nbsp;(<{$cat.photo_small_sum}>)
      <br />
      <{foreach from=$cat.subcategories item=subcat}>
        <{if $subcat.number_of_subcat}>
          <a href="<{$myurl}>/index.php?cid=<{$subcat.cid}>"><img src="<{$myurl}>/images/folder_c.gif" width="30" height="12" alt="" /><{$subcat.title}></a>&nbsp;(<{$subcat.photo_small_sum}>)&nbsp;<a href="<{$myurl}>/index.php?cid=<{$subcat.cid}>"><img src='<{$myurl}>/images/a_red.gif' width='9' height='9' alt="" title="<{$smarty.const._MD_MINIAMAZON_MORESUBCAT}>"/></a><br />
        <{else}>
          <a href="<{$myurl}>/index.php?cid=<{$subcat.cid}>"><img src="<{$myurl}>/images/folder_c.gif" width="30" height="12" alt="" /><{$subcat.title}></a>&nbsp;(<{$subcat.photo_small_sum}>)<br />
        <{/if}>
      <{/foreach}>
    </td>
    <{if ($count+1) is div by 3}>
      </tr><tr>
    <{/if}>
  <{/foreach}>
  </tr>
</table>

<{/if}>